home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / CPP / METAKIT.ZIP / EXAMPLES / DISCAT / CATALOG.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-12-09  |  963 b   |  23 lines

  1. //  catalog.h  -  recursive directory scanner sample code
  2. //
  3. //  This is a part of the MetaKit library.
  4. //  Copyright (c) 1996 Meta Four Software.
  5. //  All rights reserved.
  6. /////////////////////////////////////////////////////////////////////////////
  7.  
  8.     // The following properties are used in this code
  9. extern c4_ViewProp      pFiles;
  10. extern c4_IntProp       pParent, pSize, pDate;
  11. extern c4_StringProp    pName;
  12.  
  13.     // Scan a directory tree and return a corresponding structure for it.
  14.     // The data structure of the object returned by this routine is:
  15.     //      [parent:i, name:s, files [name:s, size:i, date:i]]
  16. extern c4_View fScanDirectories(const char* path_);
  17.  
  18.     // Reconstruct the full path name from a subdirectory index in the tree
  19. extern c4_String fFullPath(c4_View& dirs_, int dirNum_);
  20.  
  21. /////////////////////////////////////////////////////////////////////////////
  22. // $Id: catalog.h,v 1.2 1996/12/04 14:50:08 jcw Exp $
  23.